package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDTO;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AdSensitiveService extends IService<AdSensitive> {

    /**
     * 查询敏感词内容列表
     * @return
     */
    public ResponseResult<List<String>> selectAllSensitives();
    /**
     * 查询敏感词列表
     * @param dto
     * @return
     */
    ResponseResult list (SensitiveDTO dto);

    ResponseResult insert(AdSensitive adSensitive);

    ResponseResult updateAd(AdSensitive adSensitive);

    ResponseResult deleteAd(Integer id);
}
